<template>
  <div>

  </div>
</template>
<script>
import {
  reactive,
  toRefs,
  onMounted
} from "vue";
export default {
  name: "demo",
  setup() {
    const state = reactive({
      count: 0
    });
    onMounted(() => {
      console.log('component is onMounted')
    })
    return {
      ...toRefs(state)
    };
  },
};
</script>
<style lang="scss" scoped>
@import "@/styles/variable.scss";
</style>